package com.android.jay.mvp;

import com.android.jay.mvc.Account;
import com.android.jay.mvc.MvcCallabck;

/**
 * Created by wzp on 2020/2/26 0026.
 * <p>
 * 描述  ：todo
 */
public class MVPPresenter {

    private IMVPView mView;
    private MvpModel mModel;

    public MVPPresenter(IMVPView mView) {
        this.mView = mView;
        mModel = new MvpModel();
    }


    public void getData(String accountName) {
        mModel.getAccountData(accountName, new MvcCallabck() {
            @Override
            public void success(Account account) {
                mView.showSuccessR(account);

            }

            @Override
            public void failed() {
                mView.showFailR();

            }
        });

    }

}
